import http from "@/api/axios";

export const getListApi = (data: VolumeLimit.SearchForm) => {
  return http({
    method: "post",
    url: "/base/biz/bizVolumeLimit/page",
    data
  });
};
export const addOrUpVolumeLimitApi = (data: Base.GeneraDataType) => {
  return http({
    method: "post",
    url: "/base/biz/bizVolumeLimit/saveOrUpdate",
    data
  });
};
export const updateVolumeLimitStatusApi = (data: { id: string; status: number }) => {
  return http({
    method: "post",
    url: "/base/biz/bizVolumeLimit/updateStatus",
    data
  });
};
// 跟进 ID获取材积限制
export const getDetailsApi = (id: string) => {
  return http({
    method: "get",
    url: `/base/biz/bizVolumeLimit/get/${id}`
  });
};
